﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Adams.Public.Web.Controllers
{
    public class FilesController : Controller
    {
        [AppendLayoutViewModel]
        public ActionResult Index(Adams.Public.DataTransfer.Files.GetFileInput input)
        {
            var model = Business.Web.Files.Index.GetFile(input);
            return File(model.Content, model.ContentType);
        }
    }
}
